<?php

namespace app\common\model;

use think\Model;

/**
 * 世界杯赛事
 * Class WorldCupMatchModel
 * @date 2022-10-18
 */
class WorldCupMatchModel extends Model
{

    protected $connection = 'db_sports';

    protected $autoWriteTimestamp = 'int';
    // 定义时间戳字段名
    protected $createTime = 'created_at';
    protected $updateTime = 'updated_at';

    public function matchInfo()
    {
        return $this->hasOne(MatchesScheduleModel::class, 'match_id', 'match_id');
    }

}
